\section{BLL.messagesMgr类参考}
\label{class_b_l_l_1_1messages_mgr}\index{BLL::messagesMgr@{BLL::messagesMgr}}


BLL.messagesMgr合作图：
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=199pt]{class_b_l_l_1_1messages_mgr__coll__graph}
\end{center}
\end{figure}
\subsection*{公有成员}
\begin{DoxyCompactItemize}
\item 
IList$<$ {\bf messages} $>$ {\bf FindAll\_\-messages} ()
\begin{DoxyCompactList}\small\item\em 返回所有记录 \item\end{DoxyCompactList}\item 
IList$<$ {\bf messages} $>$ {\bf FindAllByPage\_\-messages} (string start, string limit, string conditions)
\begin{DoxyCompactList}\small\item\em 根据条件获得该页的记录 \item\end{DoxyCompactList}\item 
string {\bf GetRecordCount\_\-messages} (string conditions)
\begin{DoxyCompactList}\small\item\em 获得该条件的记录总条数 \item\end{DoxyCompactList}\item 
{\bf messages} {\bf FindById\_\-messages} (int id)
\begin{DoxyCompactList}\small\item\em 根据id查找指定记录 \item\end{DoxyCompactList}\item 
bool {\bf Add\_\-messages} ({\bf messages} \_\-messages)
\begin{DoxyCompactList}\small\item\em 添加新纪录 \item\end{DoxyCompactList}\item 
bool {\bf Del\_\-messages} ({\bf messages} \_\-messages)
\begin{DoxyCompactList}\small\item\em 删除记录 \item\end{DoxyCompactList}\item 
bool {\bf Del\_\-messages} (string conditions)
\begin{DoxyCompactList}\small\item\em 批量删除 \item\end{DoxyCompactList}\item 
bool {\bf Update\_\-messages} ({\bf messages} \_\-messages)
\begin{DoxyCompactList}\small\item\em 更新记录 \item\end{DoxyCompactList}\item 
bool {\bf Update\_\-messages} (string sets, string conditions)
\begin{DoxyCompactList}\small\item\em 批量更新 \item\end{DoxyCompactList}\item 
IList$<$ {\bf messages} $>$ {\bf FindByConditions\_\-messages} (string conditions)
\begin{DoxyCompactList}\small\item\em 查找符合条件的记录 \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{成员函数文档}
\index{BLL::messagesMgr@{BLL::messagesMgr}!Add\_\-messages@{Add\_\-messages}}
\index{Add\_\-messages@{Add\_\-messages}!BLL::messagesMgr@{BLL::messagesMgr}}
\subsubsection[{Add\_\-messages}]{\setlength{\rightskip}{0pt plus 5cm}bool BLL.messagesMgr.Add\_\-messages (
\begin{DoxyParamCaption}
\item[{{\bf messages}}]{ \_\-messages}
\end{DoxyParamCaption}
)}\label{class_b_l_l_1_1messages_mgr_ac08b1927b466c6157a77c9c16385feca}


添加新纪录 


\begin{DoxyParams}{参数}
{\em messages} & 实体\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
是否添加成功
\end{DoxyReturn}
\index{BLL::messagesMgr@{BLL::messagesMgr}!Del\_\-messages@{Del\_\-messages}}
\index{Del\_\-messages@{Del\_\-messages}!BLL::messagesMgr@{BLL::messagesMgr}}
\subsubsection[{Del\_\-messages}]{\setlength{\rightskip}{0pt plus 5cm}bool BLL.messagesMgr.Del\_\-messages (
\begin{DoxyParamCaption}
\item[{{\bf messages}}]{ \_\-messages}
\end{DoxyParamCaption}
)}\label{class_b_l_l_1_1messages_mgr_a6bcc6faf0c202a2516afd6c3ab7f1f91}


删除记录 


\begin{DoxyParams}{参数}
{\em messages} & 实体\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
是否删除成功
\end{DoxyReturn}
\index{BLL::messagesMgr@{BLL::messagesMgr}!Del\_\-messages@{Del\_\-messages}}
\index{Del\_\-messages@{Del\_\-messages}!BLL::messagesMgr@{BLL::messagesMgr}}
\subsubsection[{Del\_\-messages}]{\setlength{\rightskip}{0pt plus 5cm}bool BLL.messagesMgr.Del\_\-messages (
\begin{DoxyParamCaption}
\item[{string}]{ conditions}
\end{DoxyParamCaption}
)}\label{class_b_l_l_1_1messages_mgr_a563f39428db81396c72f5a78e6a8721e}


批量删除 


\begin{DoxyParams}{参数}
{\em conditions} & 删除条件，例如 ForeignID=2\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\index{BLL::messagesMgr@{BLL::messagesMgr}!FindAll\_\-messages@{FindAll\_\-messages}}
\index{FindAll\_\-messages@{FindAll\_\-messages}!BLL::messagesMgr@{BLL::messagesMgr}}
\subsubsection[{FindAll\_\-messages}]{\setlength{\rightskip}{0pt plus 5cm}IList$<${\bf messages}$>$ BLL.messagesMgr.FindAll\_\-messages (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_b_l_l_1_1messages_mgr_a4559e18339441c180489b438a29654b0}


返回所有记录 

\begin{DoxyReturn}{返回}
返回所有记录
\end{DoxyReturn}
\index{BLL::messagesMgr@{BLL::messagesMgr}!FindAllByPage\_\-messages@{FindAllByPage\_\-messages}}
\index{FindAllByPage\_\-messages@{FindAllByPage\_\-messages}!BLL::messagesMgr@{BLL::messagesMgr}}
\subsubsection[{FindAllByPage\_\-messages}]{\setlength{\rightskip}{0pt plus 5cm}IList$<${\bf messages}$>$ BLL.messagesMgr.FindAllByPage\_\-messages (
\begin{DoxyParamCaption}
\item[{string}]{ start, }
\item[{string}]{ limit, }
\item[{string}]{ conditions}
\end{DoxyParamCaption}
)}\label{class_b_l_l_1_1messages_mgr_ad1d180b2778ea6d7bd75f2e815c156c5}


根据条件获得该页的记录 


\begin{DoxyParams}{参数}
{\em start} & 开始号\\
\hline
{\em limit} & 分页大小\\
\hline
{\em Fields} & 查询关键字\\
\hline
{\em query} & 查询内容\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回当前页数据
\end{DoxyReturn}
\index{BLL::messagesMgr@{BLL::messagesMgr}!FindByConditions\_\-messages@{FindByConditions\_\-messages}}
\index{FindByConditions\_\-messages@{FindByConditions\_\-messages}!BLL::messagesMgr@{BLL::messagesMgr}}
\subsubsection[{FindByConditions\_\-messages}]{\setlength{\rightskip}{0pt plus 5cm}IList$<${\bf messages}$>$ BLL.messagesMgr.FindByConditions\_\-messages (
\begin{DoxyParamCaption}
\item[{string}]{ conditions}
\end{DoxyParamCaption}
)}\label{class_b_l_l_1_1messages_mgr_ae0762114ccbecfa4339055cb7fa50dcb}


查找符合条件的记录 


\begin{DoxyParams}{参数}
{\em conditions} & 条件\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回符合条件的记录
\end{DoxyReturn}
\index{BLL::messagesMgr@{BLL::messagesMgr}!FindById\_\-messages@{FindById\_\-messages}}
\index{FindById\_\-messages@{FindById\_\-messages}!BLL::messagesMgr@{BLL::messagesMgr}}
\subsubsection[{FindById\_\-messages}]{\setlength{\rightskip}{0pt plus 5cm}{\bf messages} BLL.messagesMgr.FindById\_\-messages (
\begin{DoxyParamCaption}
\item[{int}]{ id}
\end{DoxyParamCaption}
)}\label{class_b_l_l_1_1messages_mgr_a3d9f00599d2feb132fcb0f2e10f1def0}


根据id查找指定记录 


\begin{DoxyParams}{参数}
{\em id} & 查找的ID号\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回查找到的对象
\end{DoxyReturn}
\index{BLL::messagesMgr@{BLL::messagesMgr}!GetRecordCount\_\-messages@{GetRecordCount\_\-messages}}
\index{GetRecordCount\_\-messages@{GetRecordCount\_\-messages}!BLL::messagesMgr@{BLL::messagesMgr}}
\subsubsection[{GetRecordCount\_\-messages}]{\setlength{\rightskip}{0pt plus 5cm}string BLL.messagesMgr.GetRecordCount\_\-messages (
\begin{DoxyParamCaption}
\item[{string}]{ conditions}
\end{DoxyParamCaption}
)}\label{class_b_l_l_1_1messages_mgr_ae8fb60020406f1a8612b1906ba1f7d8a}


获得该条件的记录总条数 


\begin{DoxyParams}{参数}
{\em Fields} & 查询关键字\\
\hline
{\em query} & 查询内容\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回记录条数
\end{DoxyReturn}
\index{BLL::messagesMgr@{BLL::messagesMgr}!Update\_\-messages@{Update\_\-messages}}
\index{Update\_\-messages@{Update\_\-messages}!BLL::messagesMgr@{BLL::messagesMgr}}
\subsubsection[{Update\_\-messages}]{\setlength{\rightskip}{0pt plus 5cm}bool BLL.messagesMgr.Update\_\-messages (
\begin{DoxyParamCaption}
\item[{string}]{ sets, }
\item[{string}]{ conditions}
\end{DoxyParamCaption}
)}\label{class_b_l_l_1_1messages_mgr_a05f76725605d91c9c14e3319c1a2c183}


批量更新 


\begin{DoxyParams}{参数}
{\em sets} & 更新值，例如[field1]='X',[field2]='Y'\\
\hline
{\em conditions} & 更新条件，例如 ForeignID=2\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\index{BLL::messagesMgr@{BLL::messagesMgr}!Update\_\-messages@{Update\_\-messages}}
\index{Update\_\-messages@{Update\_\-messages}!BLL::messagesMgr@{BLL::messagesMgr}}
\subsubsection[{Update\_\-messages}]{\setlength{\rightskip}{0pt plus 5cm}bool BLL.messagesMgr.Update\_\-messages (
\begin{DoxyParamCaption}
\item[{{\bf messages}}]{ \_\-messages}
\end{DoxyParamCaption}
)}\label{class_b_l_l_1_1messages_mgr_afceb94fe61530a27481c283e31d459b8}


更新记录 


\begin{DoxyParams}{参数}
{\em messages} & 实体\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
是否更新成功
\end{DoxyReturn}


该类的文档由以下文件生成：\begin{DoxyCompactItemize}
\item 
D:/Project/1101/BLL/messagesMgr.cs\end{DoxyCompactItemize}
